home *** CD-ROM | disk | FTP | other *** search
- Please read the file COPYING first.
-
- These binaries for minix gcc
- gcc-* go into /usr/local/lib
- gcc goes into /usr/local/bin or anywhere in your PATH.
- 1M St users may want to use an older version of the driver program `gcc'
- to conserve space unless you are planning on using newer features
- of the compiler.
- all others (grep, egrep etc) can go anywhere in your PATH.
-
- NOTE about gcc-ld options:
- -s : now means strip output of symbols. If not specified, a
- minix-out.h format symbol table will be put in a.out.
-
- -z : now means generate a mdb compatible `.sym' file in addition
- to a.out.
-
- To use mdb with gcc:
-
- gcc -o foo foo.c ... -z [-s] [-mshort] ([xxx] optionaly use xxx)
- will produce foo and foo.sym
- mdb foo foo.sym
- * R or * r <args>
- .. mdb commands
-
- Note about -mshort gcc:
- gcc -mshort is now a true 16 bit integer compiler. If you use
- ansi function prototypes (see $INCLUDE/std.h) you will keep yourself
- out of trouble.
- Constructs to watch out for
- - sizeof(X) returns a LONG
- the usage: malloc(sizeof(foo)) without a cast is wrong
- malloc((unsigned int)sizeof(foo)) is correct
- the prototype
- void *malloc(unsigned int);
- will take care of the above problem
- but if you have
- extern char *malloc()
- after the prototype, the compiler will not automatically cast
- the arguement of malloc to an unsigned int. So watch out!
-
- - NULL is a (void *) (32 bit entity)
- A function foo expecting an 16 bit int arguements if invoked by
- foo(NULL, another_int);
- will get junk for another_int. The correct usage is
- foo((int)NULL, another_int);
- again prototypes for foo(int, int) if specified will do the
- right thing for you.
-
- please send your comments/suggestions to:
-
- bang: {any internet host}!dsrgsun.ces.CWRU.edu!bammi jwahar r. bammi
- domain: bammi@dsrgsun.ces.CWRU.edu
- GEnie: J.Bammi
-